package com.sample.mockito.test;

import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.mockito.exceptions.verification.SmartNullPointerException;

import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;

import static junit.framework.Assert.assertEquals;
import static org.junit.Assert.assertArrayEquals;
import static org.mockito.Mockito.*;

/*
https://www.cnblogs.com/s1328/p/4626757.html
 */
public class SampleTest07 {


    @Test
    public void sampleTest22() {
        LinkedList mock = mock(LinkedList.class);
        when(mock.get(1)).thenReturn("hello");

        System.out.println(mock.get(1));

        verify(mock, timeout(100).times(1)).get(1);
    }

}